package org.platform.lwc.tool.auth.config;


import org.platform.lwc.tool.auth.holder.LoginUserHolder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;


@Configuration
@Order(Ordered.HIGHEST_PRECEDENCE)
public class AuthConfiguration {



    @Bean
    public LoginUserHolder loginUserHolder() {
        return new LoginUserHolder();
    }
    @Bean
    public PasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }
}



